package com.zq.email.controller;

import com.zq.email.service.iml.MailServiceIml;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mail")
public class MailController {

    @Autowired
    private MailServiceIml mailSender;

    @RequestMapping("/send")
    public String mailSend() {
        mailSender.sendMail("ovo.sk@qq.com", "请回暗号", "5201314");
        return "发送成功";
    }

}
